package com.song.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName : HiController
 * @Author : 司猫子
 * @Date: 2021/3/1 11:09
 */
@Controller
public class HiController {
    @RequestMapping("/hi/to1")
    @ResponseBody
    public String to1(){
        return "to1成功访问";
    }
    @ResponseBody
    @RequestMapping("/hi/to2")
    public String to2(){
        return "to2成功访问";
    }
    @RequestMapping("/hi/to3")
    @ResponseBody
    public String to3(){
        return "to3成功访问";
    }
}
